package com.hongxun.design.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zerdoor_pc on 2016/6/2.
 */
public class PointSumIosBean {

    public int trans_num;
    public int pole_num;
    public int user_num;
    public List<PointSumRouteIosBean> route;

    public void setBean(PointSumBean bean) {
        try {
            trans_num = Integer.parseInt(bean.trans_num);
        } catch (Exception e) {
        }
        try {
            pole_num = Integer.parseInt(bean.pole_num);
        } catch (Exception e) {
        }
        try {
            user_num = Integer.parseInt(bean.user_num);
        } catch (Exception e) {
        }
        try {
            route=new ArrayList<>();
            for (PointSumRouteBean p : bean.route) {
                try {
                    PointSumRouteIosBean b=new PointSumRouteIosBean();
                    b.setBean(p);
                    route.add(b);
                } catch (Exception e) {
                }
            }
        } catch (Exception e) {
        }
    }

}
